/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author LYS
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../../../model/baseModel';

const { adminPath } = useGlobSetting();

export interface WmsRd10Apply extends BasicModel<WmsRd10Apply> {
  code?: string; // 申请单号
  modid?: string; // 生产订单ID
  mocode?: string; // 生产订单号
  invcode?: string; // 存货编码
  cwhcode?: string; // 仓库编码
  cbatch?: string; // 生产批次
  cposcode?: string; // 货位编码
  iqty?: number; // 数量
  auditDate?: string; // 审核日期
  status?: string; // 状态
}

export const wmsRd10ApplyList = (params?: WmsRd10Apply | any) =>
  defHttp.get<WmsRd10Apply>({ url: adminPath + '/mo/rd10/wmsRd10Apply/list', params });

export const wmsRd10ApplyListData = (params?: WmsRd10Apply | any) =>
  defHttp.post<Page<WmsRd10Apply>>({ url: adminPath + '/mo/rd10/wmsRd10Apply/listData', params });

export const wmsRd10ApplyForm = (params?: WmsRd10Apply | any) =>
  defHttp.get<WmsRd10Apply>({ url: adminPath + '/mo/rd10/wmsRd10Apply/form', params });

export const wmsRd10ApplySave = (params?: any, data?: WmsRd10Apply | any) =>
  defHttp.postJson<WmsRd10Apply>({ url: adminPath + '/mo/rd10/wmsRd10Apply/save', params, data });

export const wmsRd10ApplyDelete = (params?: WmsRd10Apply | any) =>
  defHttp.get<WmsRd10Apply>({ url: adminPath + '/mo/rd10/wmsRd10Apply/delete', params });
